package com.itcoon.demo.web.controller.serialize;/**
 * @author Athric Yu
 * 2024/11/11
 **/

import com.itcoon.cloud.framework.enums.BasicEnum;

/**
 *
 *
 * @author Athric Yu
 * 2024/11/11
 **/
public enum Gender implements BasicEnum<Integer, Gender> {

    MALE(10, "男"),
    FEMALE(20, "女"),
    ;

    private final int code;
    private final String name;

    Gender(int code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String description() {
        return this.name;
    }

    @Override
    public Integer value() {
        return this.code;
    }
}
